﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C31 RID: 3121
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MusicData : IMessage<MusicData>, IMessage, IEquatable<MusicData>, IDeepCloneable<MusicData>, IBufferMessage
	{
		// Token: 0x17002753 RID: 10067
		// (get) Token: 0x06008B82 RID: 35714 RVA: 0x0017322C File Offset: 0x0017142C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MusicData> Parser
		{
			get
			{
				return MusicData._parser;
			}
		}

		// Token: 0x17002754 RID: 10068
		// (get) Token: 0x06008B83 RID: 35715 RVA: 0x00173233 File Offset: 0x00171433
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MusicDataReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002755 RID: 10069
		// (get) Token: 0x06008B84 RID: 35716 RVA: 0x00173245 File Offset: 0x00171445
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MusicData.Descriptor;
			}
		}

		// Token: 0x06008B85 RID: 35717 RVA: 0x0017324C File Offset: 0x0017144C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicData()
		{
		}

		// Token: 0x06008B86 RID: 35718 RVA: 0x00173254 File Offset: 0x00171454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicData(MusicData other) : this()
		{
			this.isPlayed_ = other.isPlayed_;
			this.id_ = other.id_;
			this.groupId_ = other.groupId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008B87 RID: 35719 RVA: 0x00173291 File Offset: 0x00171491
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicData Clone()
		{
			return new MusicData(this);
		}

		// Token: 0x17002756 RID: 10070
		// (get) Token: 0x06008B88 RID: 35720 RVA: 0x00173299 File Offset: 0x00171499
		// (set) Token: 0x06008B89 RID: 35721 RVA: 0x001732A1 File Offset: 0x001714A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsPlayed
		{
			get
			{
				return this.isPlayed_;
			}
			set
			{
				this.isPlayed_ = value;
			}
		}

		// Token: 0x17002757 RID: 10071
		// (get) Token: 0x06008B8A RID: 35722 RVA: 0x001732AA File Offset: 0x001714AA
		// (set) Token: 0x06008B8B RID: 35723 RVA: 0x001732B2 File Offset: 0x001714B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17002758 RID: 10072
		// (get) Token: 0x06008B8C RID: 35724 RVA: 0x001732BB File Offset: 0x001714BB
		// (set) Token: 0x06008B8D RID: 35725 RVA: 0x001732C3 File Offset: 0x001714C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x06008B8E RID: 35726 RVA: 0x001732CC File Offset: 0x001714CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MusicData);
		}

		// Token: 0x06008B8F RID: 35727 RVA: 0x001732DC File Offset: 0x001714DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MusicData other)
		{
			return other != null && (other == this || (this.IsPlayed == other.IsPlayed && this.Id == other.Id && this.GroupId == other.GroupId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008B90 RID: 35728 RVA: 0x00173338 File Offset: 0x00171538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsPlayed)
			{
				num ^= this.IsPlayed.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008B91 RID: 35729 RVA: 0x001733A9 File Offset: 0x001715A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008B92 RID: 35730 RVA: 0x001733B1 File Offset: 0x001715B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008B93 RID: 35731 RVA: 0x001733BC File Offset: 0x001715BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsPlayed)
			{
				output.WriteRawTag(64);
				output.WriteBool(this.IsPlayed);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Id);
			}
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008B94 RID: 35732 RVA: 0x00173434 File Offset: 0x00171634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsPlayed)
			{
				num += 2;
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008B95 RID: 35733 RVA: 0x00173498 File Offset: 0x00171698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MusicData other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsPlayed)
			{
				this.IsPlayed = other.IsPlayed;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008B96 RID: 35734 RVA: 0x001734FC File Offset: 0x001716FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008B97 RID: 35735 RVA: 0x00173508 File Offset: 0x00171708
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 64U)
				{
					if (num != 80U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GroupId = input.ReadUInt32();
						}
					}
					else
					{
						this.Id = input.ReadUInt32();
					}
				}
				else
				{
					this.IsPlayed = input.ReadBool();
				}
			}
		}

		// Token: 0x0400354D RID: 13645
		private static readonly MessageParser<MusicData> _parser = new MessageParser<MusicData>(() => new MusicData());

		// Token: 0x0400354E RID: 13646
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400354F RID: 13647
		public const int IsPlayedFieldNumber = 8;

		// Token: 0x04003550 RID: 13648
		private bool isPlayed_;

		// Token: 0x04003551 RID: 13649
		public const int IdFieldNumber = 10;

		// Token: 0x04003552 RID: 13650
		private uint id_;

		// Token: 0x04003553 RID: 13651
		public const int GroupIdFieldNumber = 11;

		// Token: 0x04003554 RID: 13652
		private uint groupId_;
	}
}
